package com.nova.android.tvlauncher.ui.activity.atv

import android.annotation.SuppressLint
import com.nova.android.tvlauncher.databinding.ActivityCommonCenterPanelBinding
import com.nova.android.tvlauncher.ui.fragment.atv.UpdateAppEmtFragment
import com_github_lib_base.base.BaseVMActivity
import com_github_lib_base.base.BaseViewModel
import com_github_lib_base.ext.replaceFragment

class CommonPanelActivity: BaseVMActivity<ActivityCommonCenterPanelBinding, BaseViewModel>() {


    override fun initView() {
        val type = intent.getStringExtra(TYPE)
        when (type) {
            UPDATE_APP -> {
                replaceFragment(UpdateAppEmtFragment(), mBind.flContainer.id)
            }


        }
    }

    @SuppressLint("MissingSuperCall")
    override fun onBackPressed() {

    }


    companion object {
        const val TYPE = "type"
        const val UPDATE_APP = "update_app"


    }

}